<!--
    qCore General Tester
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

<html>
<head>
    <title>q$ General Tester</title>
    <script>imagePath='../images/';wrroot='../';contextPath='../';bDebug=true</script>
    <script src="../qCore.js"></script>
    <script src="../qBase.js"></script>
    <style>
    </style>
</head>

<body>
    
    <script>
        bDebug=true
        function bodyLoaded(){
//        	 alert(
//        	 	 "\n _w.is debug"
//        	    +"\n is.moz: "+is.moz
//        	    +"\n is.ie: "+is.ie
//        	    +"\n is.wk: "+is.wk
//        	 )
            
            
//            qMakeDynCall_test()
    
            // s$ Tests
//              s$Tests()
              
//              dateTests()
              
            
        }
        
        
        function dateTests(){
        	var
        		sRaw="Jan 1, 2001"
        	   ,a1=[]
        	   ,d=new QDate(sRaw)
        	   ,s2=d.format("MMM d, yyyy")
        	   ,a2=[]
        	 for(var i=0;i<sRaw.length;i++)a1.p(sRaw.charCodeAt(i))
        	 for(var i=0;i<s2.length;i++)a2.p(s2.charCodeAt(i))
        	 
        	 pc(
        	 	 "\n sRaw = |"+sRaw+"|"
        	    +"\n s2   = |"+s2+"|"
        	    +"\n a1   = |"+a1+"|"
        	    +"\n a2   = |"+a2+"|"
        	 	+"\n (sRaw===s2) = "+(sRaw===s2)
        	 )
        	 
        	
        	
        }
        function s$Tests(){
            var s="asdf",o={a:1,b:2}
            pc("s props = "+qObjListProps(s))   
            pc("(isDef) s.REC_DEL = "+isDef(s.REC_DEL)) 
            pc("(isDef) s$.REC_DEL = "+isDef(s.REC_DEL)) 
            pc("qObjGet(o) = "+qObjGet(o)) 
        }
        function qMakeDynCall_test(){
            try {
                var aArgs=["v1","v2","v3"]
                eval("_fn="+qMakeDynCall("__test", "aArgs", aArgs));_fn()    
            } catch(e){qErr(e)}
            function __test(){
                debug(q$.dumpArgs())
            }
        }
        
        
        
    </script>
    
    
	<script>
        bConsole=false; __qcOpts={cb:true, t:0, w: 600, h: 900}
	    _SCR_START=" bodyLoaded();"; function __start() {try{if(bConsole){startCons(__qcOpts); _w.consoleLoaded = function consoleLoaded(){ setTimeout(_SCR_START,50) }}else{eval(_SCR_START)}}catch(e){debugErr(e)}};__start()
    </script>
</body>
</html>